{% sw_macro_function foo(object) %}
    {{ object.set('called', 1) }}
{% end_sw_macro_function %}
